package com.stox.client.ui.javafx.navigator.widget;

import javafx.scene.control.ContextMenu;

import com.stox.client.core.model.intf.HasNavigable;
import com.stox.client.core.model.intf.Navigable;
import com.stox.client.ui.javafx.widget.ContextMenuConfigurerRegistry;
import com.stox.shared.model.Scrip;

public class NavigatorContextMenu extends ContextMenu implements
		HasNavigable<Scrip> {

	private final NavigableScripListView navigableScripListView;
	
	public NavigatorContextMenu(NavigableScripListView navigableScripListView) {
		this.navigableScripListView = navigableScripListView;
		ContextMenuConfigurerRegistry.getInstance().attachContextMenu(this);
	}
	
	@Override
	public Navigable<Scrip> getNavigable() {
		return navigableScripListView.getNavigable();
	}
	
}
